using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using SourceStack.Repositories;
using  E=SourceStack.Entities;

namespace SourceStack.Pages.Aritcle
{
    public class SingleModel : PageModel
    {
        private ArticleRepository aritcleRepository;
        public SingleModel()
        {
            aritcleRepository = new ArticleRepository();
        }
        public E.Article Aritcle { get; set; }
        public void OnGet()
        {
            int id = Convert.ToInt32(Request.Query["id"][0]);   
            Aritcle = new ArticleRepository().Find(8);
            ViewData["AgreeCount"] = 3;
            bool same = HttpContext == Request.HttpContext;
        }

    }
    
 
}
